﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    EnableEventValidation="false" CodeFile="ViewCINoMatchFoundTwo.aspx.cs" Inherits="carinsurance_ViewCINoMatchFoundTwo"
    Async="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="../../OLD/css/styles2.css" title="Contemporary" />
   
    <style type="text/css">
        /*Header*/.Tab .ajax__tab_header
        {
            color: #4682b4;
            font-family: Calibri;
            font-size: 14px;
            font-weight: bold;
            background-color: #ffffff;
            margin-left: 0px;
        }
        /*Body*/.Tab .ajax__tab_body
        {
            border: 1px solid #b4cbdf;
            padding-top: 0px;
        }
        /*Tab Active*/.Tab .ajax__tab_active .ajax__tab_tab
        {
            color: #ffffff;
            background: url("../../images/backgrounds/tab/tab_active.gif") repeat-x;
        }
        .Tab .ajax__tab_active .ajax__tab_inner
        {
            color: #ffffff;
            background: url("../../images/backgrounds/tab/tab_left_active.gif") no-repeat left;
            padding-left: 10px;
        }
        .Tab .ajax__tab_active .ajax__tab_outer
        {
            color: #ffffff;
            background: url("../../images/backgrounds/tab/tab_right_active.gif") no-repeat right;
            padding-right: 6px;
        }
        /*Tab Hover*/.Tab .ajax__tab_hover .ajax__tab_tab
        {
            color: #000000;
            background: url("../../images/backgrounds/tab/tab_hover.gif") repeat-x;
        }
        .Tab .ajax__tab_hover .ajax__tab_inner
        {
            color: #000000;
            background: url("../../images/backgrounds/tab/tab_left_hover.gif") no-repeat left bottom;
            padding-left: 10px;
        }
        .Tab .ajax__tab_hover .ajax__tab_outer
        {
            color: #000000;
            background: url("../../images/backgrounds/tab/tab_right_hover.gif") no-repeat right;
            padding-right: 6px;
        }
        /*Tab Inactive*/.Tab .ajax__tab_tab
        {
            color: #666666;
            background: url("../../images/backgrounds/tab/tab_Inactive.gif") repeat-x;
            padding-top: 15px;
            height: 35px;
        }
        .Tab .ajax__tab_inner
        {
            color: #666666;
            background: url("../../images/backgrounds/tab/tab_left_inactive.gif") no-repeat left;
            padding-left: 10px;
        }
        .Tab .ajax__tab_outer
        {
            color: #666666;
            background: url("../../images/backgrounds/tab/tab_right_inactive.gif") no-repeat right;
            padding-right: 6px;
            margin-right: 2px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <table width="100%" cellpadding="5">
        <tr>
            <td style="width: 800px">
                <h1>
                    <asp:Label runat="server" Text="<%$Resources:CarInsurance,NonGGPackages%>" ID="Label7"></asp:Label>
                    &nbsp; - &nbsp;
                    <asp:Label runat="server" Text="" ID="lblCallTypeDesc"></asp:Label></h1>
            </td>
            <td style="width: 200px">
                &nbsp;
            </td>
            <td style="text-align: right">
                <asp:Button runat="server" ID="btnReset" Text="Reset/Reload" Visible="true" OnClick="btnReset_Click"
                    Width="121px" Height="30px" Font-Bold="true" ValidationGroup="none" CausesValidation="false"
                    OnClientClick="return ResetConfirm();" CssClass="blueB ml10" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" Text="-1" ID="lblCallType" Visible="false"></asp:Label>
    <asp:Label runat="server" Text="0" ID="lblResetUrl" Visible="false" />
    <asp:Label runat="server" Text="-1" ID="lblAgentLeadID" Visible="false"></asp:Label>
    <div class="topdisplay pb10">
        <div class="toggle" runat="server">
            <div class="title opened" id="opened1">
                <img src="../../images/icons/dark/call.png" alt="" class="titleIcon" /><h6>
                    <asp:Label ID="lblStartDayNameCaption" Font-Bold="true" runat="server" Text="<%$Resources:General,Started%>" />
                    at
                    <asp:Label runat="server" ID="lblStartDayName" Font-Bold="true" />
                    &nbsp;<asp:Label runat="server" ID="lblStartDateTime" Visible="true" ForeColor="Red"
                        Font-Bold="true" />
                    <asp:Label ID="lblCallDurationCaption" Font-Bold="true" runat="server" Text="<%$Resources:General,CallDuration%>" />
                    <span style="display: none;">M:<asp:TextBox runat="server" ID="txtMinute" Text="00"
                        Width="30px" />
                        S:<asp:TextBox runat="server" ID="txtSecond" Text="00" Width="30px" /></span>
                    <asp:Label runat="server" ID="lblCallDurationTimer" Font-Bold="true" Font-Size="Large" />
                </h6>
            </div>
            <table class="sTable" width="100%">
                <tr>
                    <td>
                        <asp:Label runat="server" Text="Agent - Call" ID="lblCallSessionName" Font-Bold="true"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:Button runat="server" ID="btnGoBack" Text="<%$Resources:CarInsurance,Back%>"
                Visible="false" OnClick="btnGoBack_Click" Width="121px" Height="30px" Font-Bold="true"
                ValidationGroup="none" CausesValidation="false" OnClientClick="return GoBackConfirm();"
                CssClass="blueB ml10" />
        </div>
        <asp:HyperLink runat="server" Visible="false" ID="lnkNewCarUsage" NavigateUrl="#"
            Text="New"></asp:HyperLink>
    </div>
    <div class="toggle" runat="server" id="divCompletedQuoteDetails" visible="false">
        <div class="title opened" id="opened6">
            <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="Label10" runat="server" Text="" />Online
                <asp:Label runat="server" ID="lblApplicationFormSummaryCaption" Text="<%$Resources:General,AppFromGGOnline%>" />
            </h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <thead>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "ReferenceNo")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "FullName")%>
                    </td>
                    
                    <td>
                        <%=GetGlobalResourceObject("General", "PaymentType")%>
                    </td>
                    
                    <td>
                        <%=GetGlobalResourceObject("General", "OrderRefNo")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("General", "PackageName")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("General", "AnnualPremium")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("NonGG", "CTPL")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("General", "DateTime")%>
                    </td>
                    
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblCQQuoteRefNo" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQFullName" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQPaymentType" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQOrderRefNo" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQPackageName" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQPremiumAmount" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQCTPLStatus" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQDateTime" />
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    <div id="divGGScript" class="toggle" runat="server">
        <div class="title opened" id="opened9">
            <img src="../../images/icons/dark/like.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="Label1" runat="server" Text="<%$Resources:Menu,Script%>" />
                <div style="display: none;">
                    <asp:Label ID="lblScript" runat="server" Text="" ForeColor="Red" />
                </div>
            </h6>
        </div>
        <div style="width: 100%; overflow: auto; height: auto;">
            <div id="grdCharges" runat="server" style="width: 100%; height: 350px;">
                <div id="divTHScript" runat="server" visible="true">
                    <!--#include file="../../css/TH.html"-->
                </div>
                <div id="divENScript" runat="server" visible="false">
                    <!--#include file="../../css/EN.html"-->
                </div>
                <div id="divOffTHScript" runat="server" visible="true">
                    <!--#include file="../../css/Off_TH.html"-->
                </div>
                <div id="divOffENScript" runat="server" visible="false">
                    <!--#include file="../../css/Off_EN.html"-->
                </div>
            </div>
        </div>
    </div>
    <div runat="server" id="divLinks" visible="false">
        <div class="body" id="newbtn">
            <asp:Button ID="btnRenewalQuote" CssClass="blueB ml10 mt10" runat="server" Text="Re-Run Renewal Quote"
                OnClick="btnRenewQuote_Click" OnClientClick="return ConfirmRenewQuote();" />
            <asp:HyperLink ID="hplReRunQuote" CssClass="wButton bluewB mr15 mt10" runat="server"
                Text="<%$Resources:CarInsurance,ReRunQuote %>" />
            <asp:HyperLink ID="hplNewQuote" CssClass="wButton bluewB mr15 mt10" runat="server"
                Text="<%$Resources:CarInsurance,RunNewQuote %>" />
            <asp:Label runat="server" ID="lblLastYearRefNo" />
            <asp:Label runat="server" ID="lblRenewalQuoteMessage" />
            <asp:Label runat="server" ID="lblRenewalStaus" Visible="false" Text="0" />
        </div>
        <div class="nNote nFailure hideit" id="divBuyNowStatusMessage" runat="server">
            <p>
                <asp:Label runat="server" ID="lblCommenceDateStatus" Visible="false" Text="0" />
                <asp:Label runat="server" ID="lblCommenceDateStatusMessage" />
                <asp:Label runat="server" ID="lblQuoteDateTimeStatus" Visible="false" Text="0" />
                <asp:Label runat="server" ID="lblQuoteDateTimeStatusMessage" />
                <asp:Label runat="server" ID="lblQuoteStatusMessage" /></p>
        </div>
        <br />
    </div>
    <asp:TabContainer ID="tabContainer" Height="270px" ScrollBars="Auto" CssClass="Tab"
        ActiveTabIndex="0" runat="server" Visible="true">
        <asp:TabPanel ID="tplCustomerPolicyDetail" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <asp:Label ID="Label2" runat="server" Text="<%$Resources:CarInsurance,CustomerAndPolicy %>" />
            </HeaderTemplate>
            <ContentTemplate>
                <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                    <thead>
                        <tr>
                            <td colspan="3">
                                <b>
                                    <%=GetGlobalResourceObject("CarInsurance", "CustomerDetail")%></b>
                            </td>
                            <td colspan="3">
                                <b>
                                    <%=GetGlobalResourceObject("CarInsurance", "CarDetail")%></b>
                            </td>
                            <td colspan="6">
                                <b>
                                    <%=GetGlobalResourceObject("CarInsurance", "PolicyDetail")%></b>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "FirstName")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblName" />
                            </td>
                            <!--Car Detaisl-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblRegYear" />
                            </td>
                            <!--Policy Details-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblInsuranceType" />
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "SumInsured")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblSumInsured" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "LastName")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblLastName" />
                            </td>
                            <!--Car Detaisl-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblEmailAddress" />
                            </td>
                            <!--Policy Details-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "MobileNo")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblMobileNo" />
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblCoverCommencementDate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "Gender")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblGender" />
                            </td>
                            <!--Car Detaisl-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "CarMakeModel")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblCarMakeModel" />
                            </td>
                            <!--Policy Details-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "CurrentInsurer")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td colspan="4">
                                <asp:Label Font-Bold="true" runat="server" ID="lblCurrentInsurer" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "Occupation") %>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblOccupation" />
                            </td>
                            <!--Car Detaisl-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "VehicleType") %>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblVehicleType" />
                            </td>
                            <!--Policy Details-->
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "NamedDriver") %>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblDriverCount" />
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "CTPL")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblCTPL" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "DOB")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblDOB" />
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "GarageType")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblGarageType" />
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "AnyClaimLastYear")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblClaimInfo" />
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "NCB")%>
                            </td>
                            <td>
                                &nbsp;&nbsp; : &nbsp;
                            </td>
                            <td>
                                <asp:Label Font-Bold="true" runat="server" ID="lblNCD" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="12">
                                <span style="display: none;"><b>Ref.
                                    <%=GetGlobalResourceObject("CarInsurance", "CarID")%>:</b><asp:Label ID="lblRefCarID"
                                        runat="server" Font-Bold="true" ForeColor="Red" /><b><%=GetGlobalResourceObject("CarInsurance", "MobileNo")%>:</b><asp:Label
                                            ID="lblRefMobile" runat="server" Font-Bold="true" ForeColor="Red" /><b><%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%>:</b><asp:Label
                                                ID="lblRefEmail" runat="server" Font-Bold="true" ForeColor="Red" /></span><b><%=GetGlobalResourceObject("CarInsurance", "QuoteDateTime")%>:</b><asp:Label
                                                    ID="lblRefModifiedDateTime" runat="server" Font-Bold="true" ForeColor="Red" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tplCarList" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/car.png" alt="" class="titleIcon" />
                <asp:Label runat="server" Text="<%$Resources:General, CarList %>" ID="lblCarDetailListTitle" />
            </HeaderTemplate>
            <ContentTemplate>
                <asp:GridView ID="gvCarDetailList" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    DataSourceID="sqlDsCarDetailList" Width="100%" GridLines="None" CssClass="sTable"
                    DataKeyNames="CarID, CECarPolicyID, RefCEUserID" EmptyDataText="No item found."
                    OnSelectedIndexChanged="gvCarDetailList_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="CarID" HeaderText="<%$Resources:CarInsurance, CarID %>"
                            HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="Red" SortExpression="CarID"
                            InsertVisible="False" ReadOnly="True" Visible="true">
                            <ItemStyle Font-Bold="true" ForeColor="Red" BackColor="ActiveBorder" Width="80px"
                                HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="CECarPolicyID" HeaderText="PolicyID" SortExpression="CECarPolicyID"
                            InsertVisible="False" ReadOnly="True" Visible="true">
                            <ItemStyle Width="50px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="MakeModelDesc" HeaderText="<%$Resources:CarInsurance,CarMakeModel%>"
                            SortExpression="MakeModelDesc">
                            <ItemStyle Width="240px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="ManufactYear" HeaderText="<%$Resources:CarInsurance,CarModelYear%>"
                            SortExpression="ManufactYear">
                            <ItemStyle Width="60px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="InsuranceTypeDesc" HeaderText="<%$Resources:CarInsurance,InsuranceType%>"
                            SortExpression="InsuranceTypeDesc">
                            <ItemStyle Width="30px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="CoverageCommenceDate" HeaderText="<%$Resources:CarInsurance,CoverCommencementDate%>"
                            SortExpression="CoverageCommenceDate" DataFormatString="{0:dd-MMM-yyyy}">
                            <ItemStyle Width="80px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="NCDPercentDesc" HeaderText="<%$Resources:CarInsurance,NCB%>"
                            SortExpression="NCDPercentDesc">
                            <ItemStyle Width="50px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="SelectedPlan" HeaderText="SelectedPlan" SortExpression="SelectedPlan">
                            <ItemStyle Width="120px" Font-Bold="true" ForeColor="Red"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="ModifiedDate" DataFormatString="{0:dd-MMM-yyyy hh:mm tt}"
                            HeaderText="<%$Resources:CarInsurance,QuoteDateTime%>" SortExpression="ModifiedDate">
                            <ItemStyle></ItemStyle>
                        </asp:BoundField>
                        <asp:CommandField ShowSelectButton="True" ButtonType="Button" ItemStyle-Width="80px"
                            SelectText="<%$Resources:General,Select%>" ControlStyle-CssClass="blueB ml10" />
                    </Columns>
                    <FooterStyle />
                    <PagerStyle />
                    <SelectedRowStyle BackColor="ActiveBorder" Font-Bold="true" />
                    <HeaderStyle />
                    <EditRowStyle />
                    <AlternatingRowStyle CssClass="gridodd" />
                    <RowStyle CssClass="grideven" Height="30px" />
                </asp:GridView>
                <asp:SqlDataSource ID="sqlDsCarDetailList" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                    SelectCommand="sprocCXCRMGetCarDetailListByCustomerID" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtCustomerID" Name="CustomerID" PropertyName="Text"
                            Type="Int64" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tplCallHistory" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/call.png" alt="" class="titleIcon" />
                <asp:Label runat="server" Text="<%$Resources:General,CallHistory%>" ID="lblCallHistoryTitle" />
            </HeaderTemplate>
            <ContentTemplate>
                <asp:Label runat="server" Text="<%$Resources:General,CallHistory%>" ForeColor="Red"
                    ID="lblCallHistoryMessage" />
                <asp:Label runat="server" Text="0" ForeColor="Red" ID="lblCallHistoryFoundCount" />
                <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
                    ID="lblLangOption" />
                <asp:GridView ID="gvCallHistory" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    DataSourceID="sqlDsCallHistory" AllowSorting="false" Width="100%" GridLines="None"
                    CssClass="sTable" EmptyDataText="No call history so far." OnRowDataBound="gvCallHistory_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="CEID" HeaderText="AgentID" SortExpression="CEID" InsertVisible="False"
                            ReadOnly="True" Visible="false">
                            <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="180px" DataField="FULLNAME" HeaderText="<%$Resources:General,Broker%>"
                            SortExpression="FULLNAME">
                            <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="80px" DataField="CarID" HeaderText="CarID" HeaderStyle-Font-Bold="true"
                            HeaderStyle-ForeColor="Red" SortExpression="CarID">
                            <ItemStyle Width="80px" Font-Bold="true" BackColor="ActiveBorder" ForeColor="Red"
                                HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="100px" Visible="false" DataField="CallTypeID" HeaderText="<%$Resources:General,CallType%>"
                            SortExpression="CallTypeID">
                            <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallTypeDesc"
                            HeaderText="<%$Resources:General,CallType%>" SortExpression="CallTypeDesc">
                            <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallFinish"
                            HeaderText="<%$Resources:General,FinishCall%>" SortExpression="CallFinish">
                            <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="80px" DataField="CallStatusDesc" HeaderText="<%$Resources:General, Status %>"
                            SortExpression="CallStatusDesc" Visible="true">
                            <ItemStyle Width="120px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="80px" DataField="CallDurationDesc" HeaderText="<%$Resources:General,CallDuration%>"
                            SortExpression="CallDurationDesc" Visible="true">
                            <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="380px" HtmlEncode="false" DataField="Remark" HeaderText="<%$Resources:General,Comments%>"
                            ReadOnly="True" SortExpression="Remark">
                            <ItemStyle Width="380px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField ItemStyle-Width="80px" DataField="ModifiedDate" HeaderText="<%$Resources:General,DateTime%>"
                            DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ModifiedDate">
                            <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                    <FooterStyle />
                    <PagerStyle />
                    <SelectedRowStyle />
                    <HeaderStyle />
                    <EditRowStyle />
                    <AlternatingRowStyle CssClass="gridodd" />
                    <RowStyle CssClass="grideven" Height="30px" />
                </asp:GridView>
                <asp:SqlDataSource ID="sqlDsCallHistory" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                    SelectCommand="sprocCXCRMGetCallStatusLogHistory" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtCustomerID" Name="CustomerID" PropertyName="Text"
                            Type="Int64" />
                        <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" PropertyName="Text"
                            Type="Int16" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tplResults" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/cart.png" alt="" class="titleIcon" />
                Online
                <asp:Label ID="lblQuoteResultTitle" runat="server" Text="<%$Resources:CarInsurance,Quotes %>" />
            </HeaderTemplate>
            <ContentTemplate>
                <asp:UpdatePanel runat="server" ID="uplCarResultOnline">
                    <ContentTemplate>
                        <asp:GridView ID="gvCarResult" runat="server" AutoGenerateColumns="False" CellPadding="2"
                            Width="100%" GridLines="None" CssClass="sTable" DataKeyNames="CITempResultId,ProviderCompanyId,BuyUrl"
                            EmptyDataText="<div class='pad_10'><h6>No Matches Found!</h6><span class='font_12'><strong>Please take note that there are no matches found based on customer's details entered.</strong></span><div class='seperator'></div><div class='seperator'></div></div>"
                            EmptyDataRowStyle-CssClass="" OnRowCreated="gvCarResult_RowCreated" OnRowCommand="gvCarResult_RowCommand"
                            AllowSorting="false" OnRowDataBound="gvCarResult_RowDataBound">
                            <Columns>
                                <asp:BoundField DataField="CITempResultId" HeaderText="CITempResultId" Visible="false" />
                                <asp:BoundField DataField="CXCoverTypeId" HeaderText="CoverTypeId" Visible="false" />
                                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" Visible="false" />
                                <asp:TemplateField
                                    HeaderText="<%$Resources:CarInsuranceResultPage,Insurer %>" SortExpression="CompanyName">
                                    <ItemTemplate>
                                        <div>
                                            <asp:Image ID="imgCompanyLogo" runat="server" />
                                        </div>
                                        <div>
                                            <asp:Label ID="lblPackageName" runat="server" Text="" />
                                        </div>
                                        <div>
                                            <asp:HyperLink ID="hplWorkshopLink" runat="server" Text="<%$Resources:CarInsurance,GarageLink %>" />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--Company Name--%><asp:BoundField DataField="CompanyName" Visible="false" HeaderText="Company Name"
                                    SortExpression="CompanyName" />
                                <%--Annual Premium--%><asp:BoundField DataField="TotalVMI" DataFormatString="{0:#,0.00}"
                                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TotalVMI %>"
                                    HeaderStyle-Width="90" SortExpression="TotalVMI" />
                                <asp:BoundField DataField="AnnualPremium" Visible="false" />
                                <%--CTPL--%><asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,CTPL %>"
                                    HeaderStyle-Width="60" SortExpression="TotalCMI" Visible="false">
                                    <ItemTemplate>
                                        <div>
                                            <asp:Image ID="imgCTPL" ImageUrl="~/OLD/images/icons/X.gif" runat="server" />
                                        </div>
                                        <div>
                                            <asp:Label ID="lblCTPLSymbol" runat="server" Text="" />
                                            <asp:Label ID="lblCTPL" runat="server" Text="" />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                    HeaderStyle-Width="100" HeaderText="<%$Resources:CarInsuranceResultPage,DEC %>"
                                    SortExpression="DEC">
                                    <ItemTemplate>
                                        <div>
                                            <asp:Label ID="lblDECZero" runat="server" Text="Waived" />
                                        </div>
                                        <div>
                                            <asp:Label ID="lblDECSymbol" runat="server" Text="" />
                                            <asp:Label ID="lblDEC" runat="server" Text="" />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-CssClass="green_item"
                                    HeaderStyle-CssClass="green_bottom" HeaderStyle-Width="100" HeaderText="<%$Resources:CarInsuranceResultPage,OwnDamageFireTheft %>"
                                    SortExpression="SumInsured">
                                    <ItemTemplate>
                                        <div>
                                            <asp:Image ID="imgSumInsured" ImageUrl="~/OLD/images/icons/X.gif" runat="server" />
                                        </div>
                                        <div>
                                            <asp:Label ID="lblSumInsuredSymbol" runat="server" Text="" />
                                            <asp:Label ID="lblSumInsured" runat="server" Text="" />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--Liability for Property Damage--%><asp:BoundField DataField="TPPD" ItemStyle-CssClass="blue_item"
                                    HeaderStyle-CssClass="blue_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPPD %>" SortExpression="TPPD" />
                                <%--Liability for Bodily Injury/Death--%><asp:BoundField DataField="TPBIA" ItemStyle-CssClass="blue_item"
                                    HeaderStyle-CssClass="blue_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIA %>"
                                    SortExpression="TPBIA" />
                                <%--Bodily Injury/Death (per person)--%><asp:BoundField DataField="TPBIP" ItemStyle-CssClass="blue_item"
                                    HeaderStyle-CssClass="blue_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIP %>"
                                    SortExpression="TPBIP" />
                                <%--Personal Accident (driver)--%><asp:BoundField DataField="PADriver" ItemStyle-CssClass="gold_item"
                                    HeaderStyle-CssClass="gold_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,PADriver %>"
                                    SortExpression="PADriver" />
                                <%--Medical Expenses (per person)--%>
                                <asp:BoundField DataField="MedicalExpense" ItemStyle-CssClass="gold_item" DataFormatString="{0:#,0}"
                                    HeaderStyle-Width="80" HtmlEncode="false" HeaderStyle-CssClass="gold_bottom"
                                    HeaderText="<%$Resources:CarInsuranceResultPage,MED %>" SortExpression="MedExp" />
                                <%--Bail Bond (per accident)--%>
                                <asp:BoundField DataField="BailBond" ItemStyle-CssClass="gold_item" HeaderStyle-CssClass="gold_bottom"
                                    DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,BailBond %>"
                                    SortExpression="BailBond" />
                                <%--Button Area--%>
                                <asp:CommandField ShowSelectButton="True" ButtonType="Button" ItemStyle-Width="80px"
                                    ControlStyle-Width="80px" SelectText="<%$Resources:General,Select%>" ControlStyle-CssClass="blueB ml10" />
                                <asp:TemplateField HeaderText="" HeaderStyle-CssClass="buydirect">
                                    <ItemTemplate>
                                        <div class="gridbtn5">
                                            <asp:ImageButton ID="ibtMoreInfo" runat="server" Visible="false" ImageUrl="<%$Resources:ImageResource,MoreInfoButtonImageUrl%>" />
                                            <asp:ImageButton ID="ibtBuyNow" ImageUrl="<%$Resources:ImageResource,BuyOnlineButtonImageUrl%>"
                                                Visible="false" runat="server" CommandName="BuyNow" OnClientClick="javascript:return confirm('Are you sure to proceed BUY ONLINE?');" /><%--OnClientClick ="aspnetForm.target ='_blank';"--%><br />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle />
                            <PagerStyle />
                            <SelectedRowStyle />
                            <HeaderStyle CssClass="gridheader" />
                            <EditRowStyle />
                            <AlternatingRowStyle CssClass="gridodd" />
                            <RowStyle CssClass="grideven" />
                        </asp:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tplEdit" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <asp:Label runat="server" Text="<%$Resources:CarInsurance,Edit%>" ID="Label9" />
            </HeaderTemplate>
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                            <tr>
                                <td colspan="6">
                                    <asp:ValidationSummary runat="server" ValidationGroup="editdetail" ID="ValidationSummary1"
                                        ShowMessageBox="false" ShowSummary="true" ForeColor="Red" Font-Bold="true" HeaderText="Opps.. Please complete all (*) fields." />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetGlobalResourceObject("CarInsuranceResultPage", "LicensePlate")%>
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEditLicensePlate" CausesValidation="false" runat="server" MaxLength="50"
                                        Width="200px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvLicensePlate" runat="server" ControlToValidate="txtEditLicensePlate"
                                        Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="editdetail"></asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:Label runat="server" Text="<%$Resources:CarInsurance,CoverCommencementDate%>"
                                        ID="lblEditCoverCommencementDateCaption" />
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlEditCoverCommencementDate" Width="150px" runat="server" />
                                    Edited Date:
                                    <asp:Label runat="server" ID="lblEditCoverCommencementDate" Font-Bold="true" ForeColor="Red" />
                                    <asp:RequiredFieldValidator ID="rfvEditCoverCommencementDate" ValidationGroup="editdetail"
                                        runat="server" ControlToValidate="ddlEditCoverCommencementDate" ErrorMessage=""
                                        Text="*" /><br />
                                    <asp:Label runat="server" ID="lblEditCoverCommencementDateMessage" Font-Bold="true"
                                        ForeColor="Red" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetGlobalResourceObject("CarInsurance", "NamedDriver") %>
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlEditNamedDriver" Width="80px" CausesValidation="false" runat="server">
                                        <asp:ListItem Text="0" Value="0" />
                                        <asp:ListItem Text="1" Value="1" />
                                        <asp:ListItem Text="2" Value="2" />
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvEditNameDriver" ValidationGroup="editdetail" runat="server"
                                        ControlToValidate="ddlEditNamedDriver" InitialValue="-1" ErrorMessage="" Text="*" />
                                </td>
                                <td>
                                    <%=GetGlobalResourceObject("CarInsurance", "NCB") %>
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlEditNCB" Width="80px" CausesValidation="false" runat="server">
                                        <asp:ListItem Text="0" Value="0" />
                                        <asp:ListItem Text="20" Value="20" />
                                        <asp:ListItem Text="30" Value="30" />
                                        <asp:ListItem Text="40" Value="40" />
                                        <asp:ListItem Text="50" Value="50" />
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvEditNCB" ValidationGroup="editdetail" runat="server"
                                        ControlToValidate="ddlEditNCB" InitialValue="-1" ErrorMessage="" Text="*" />
                                </td>
                            </tr>
                            <tr>
                                <td height="25">
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:Button ID="btnEditSubmit" OnClientClick="javascript:return SubmitEditDetailConfirm();"
                                        runat="server" Text="<%$Resources:General,Save%>" ValidationGroup="editdetail"
                                        OnClick="btnEditSubmit_Click" Width="150px" Height="30px" Font-Bold="true" CssClass="blueB ml10" />
                                    <asp:Label ID="lblEditDetailMessage" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                                </td>
                                <td>
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:CheckBox ID="chkConfirmEmail" Font-Bold="true" Text="Send Quotation" runat="server"
                                        OnCheckedChanged="chkConfirmEmail_CheckedChanged" AutoPostBack="True" />
                                    <asp:TextBox ID="txtConfirmEmail" runat="server" Width="180px" />
                                    <asp:RequiredFieldValidator ID="rfvConfirmEmail" Enabled="true" Display="Dynamic"
                                        ValidationGroup="sendquotation" runat="server" ControlToValidate="txtConfirmEmail"
                                        ErrorMessage="*" Text="*" />
                                    <asp:RegularExpressionValidator ID="revConfirmEmail" Enabled="true" Display="Dynamic"
                                        ValidationGroup="sendquotation" runat="server" ControlToValidate="txtConfirmEmail"
                                        ErrorMessage="*" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                                </td>
                                <td>
                                    <asp:Button ID="btnSendQuotation" runat="server" Text="<%$Resources:General,ConfirmEmailAndSendQuotation%>"
                                        Visible="true" OnClick="btnSendQuotation_Click" CssClass="blueB ml10" OnClientClick="return SendQuotationConfirm();" />
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="btnSendOrderConfirmation" runat="server" Text="<%$Resources:General,SendOrderConfirmation%>"
                                        Visible="true" OnClick="btnSendOrderConfirmation_Click" CssClass="blueB ml10"
                                        OnClientClick="return SendQuotationConfirm();" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6">
                                    <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblSendQuotationMessage" />
                                    <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblSendOrderConfirmationMessage" />
                                    <asp:Button ID="btnNewPremium" runat="server" Text="<%$Resources:General,NewQuotation%>"
                                        CausesValidation="false" Visible="false" OnClick="btnNewPremium_Click" CssClass="blueB ml10"
                                        OnClientClick="javascript:if(!ConfirmNew()) return false;" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tplPremiumList" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/cart.png" alt="" class="titleIcon" />
                <asp:Label ID="Label3" runat="server" Text="<%$Resources:CarInsurance,NonGGPacakagesPremiumList%>" />
            </HeaderTemplate>
            <ContentTemplate>
                <asp:UpdatePanel ID="uplPremiumList" runat="server" UpdateMode="Conditional">
                    
                    <ContentTemplate>
                        <asp:Label runat="server" ID="lblCarMoreDetailID" Text="-1" Visible="false" />
                        <asp:Label runat="server" ID="lblAppStatus" Text="" />
                        <asp:Label runat="server" ID="lblAppStatusMessage" Text="" />
                        <asp:GridView ID="grvPremiumList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            CellPadding="2" EmptyDataText="There are no data records to display." CssClass="sTable"
                            Width="100%" GridLines="None" DataSourceID="sqlDsPremiumList" DataKeyNames="CXBrokerPremiumId, CXBrokerProviderId"
                            OnRowCommand="grvPremiumList_RowCommand" OnSelectedIndexChanged="grvPremiumList_SelectedIndexChanged">
                            <Columns>
                                <asp:BoundField DataField="CXBrokerPremiumId" Visible="false" HeaderText="CXBrokerPremiumId"
                                    SortExpression="CXBrokerPremiumId" />
                                <asp:BoundField DataField="ProviderCoverTypeId" Visible="false" HeaderText="ProviderCoverTypeId"
                                    SortExpression="ProviderCoverTypeId" />
                                <asp:BoundField DataField="AgentName" HeaderText="<%$Resources:General,Broker%>"
                                    SortExpression="AgentName" />
                                <asp:ImageField DataAlternateTextField="CompanyName" DataImageUrlField="LogoUrl"
                                    HeaderText="Logo">
                                </asp:ImageField>
                                <asp:BoundField DataField="CompanyName" HeaderText="<%$Resources:CarInsurance,CompanyName%>"
                                    SortExpression="CompanyName" Visible="false" />
                                <asp:BoundField DataField="Info1" HeaderText="<%$Resources:General,ReferenceNo%>"
                                    SortExpression="Info1" ItemStyle-BackColor="ActiveBorder" ItemStyle-Font-Bold="true"
                                    ItemStyle-ForeColor="Red" ItemStyle-Font-Size="Medium">
                                    <ItemStyle BackColor="ActiveBorder" Font-Bold="True" Font-Size="Medium" ForeColor="Red" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderText="<%$Resources:CarInsurance,InsuranceType%>"
                                    SortExpression="ProviderCoverTypeDesc" />
                                <asp:BoundField DataField="Package" HeaderText="<%$Resources:General,PackageName%>"
                                    SortExpression="Package" Visible="false" />
                                <asp:BoundField DataField="WorkShopDesc" HeaderText="<%$Resources:CarInsurance,GarageType%>"
                                    SortExpression="WorkShopDesc" />
                                <asp:BoundField DataField="OwnDamage" DataFormatString="{0:#,0}" HeaderText="<%$Resources:CarInsurance,SumInsured%>"
                                    SortExpression="OwnDamage" />
                                <asp:BoundField DataField="DiscountPercentage" Visible="true" HeaderText="Discount (%)"
                                    SortExpression="DiscountPercentage" />
                                <asp:BoundField DataField="TotalCMI" DataFormatString="{0:#,0}" HeaderText="<%$Resources:CarInsurance,CTPL%>"
                                    SortExpression="TotalCMI" />
                                <asp:BoundField DataField="Premium" DataFormatString="{0:#,0}" HeaderText="<%$Resources:General,PremiumAmount%>"
                                    SortExpression="Premium" />
                                <asp:BoundField DataField="Info5" HeaderText="<%$Resources:CarInsuranceResultPage,FloodCover%>"
                                    SortExpression="Info5" />
                                <asp:BoundField DataField="NameDriverStatus" HeaderText="<%$Resources:NonGG,NamedDrivers%>"
                                    SortExpression="NameDriverStatus" />
                                <asp:BoundField DataField="SelectedStatus" HeaderText="<%$Resources:CarInsurance,SelectStatus%>"
                                    SortExpression="SelectedStatus" ItemStyle-Font-Bold="true">
                                    <ItemStyle Font-Bold="True" />
                                </asp:BoundField>
                                <asp:BoundField ItemStyle-Width="50px" DataField="ModifiedDate" DataFormatString="{0:dd/MMM/yyyy hh:mm:ss tt}"
                                    HeaderText="<%$Resources:General,DateTime%>" SortExpression="ModifiedDate" />
                                <asp:TemplateField HeaderText="<%$Resources:CarInsurance,Delete%>">
                                    <ItemTemplate>
                                        <asp:Button runat="server" ID="btnDelete" Text="Delete" CommandName="MyDelete" CommandArgument='<%#Eval("CXBrokerPremiumId")%>'
                                            OnClientClick="return DeletePremiumConfirm();" Width="50px" CssClass="blueB ml10" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowSelectButton="True" ButtonType="Button" ItemStyle-Width="50px"
                                    ControlStyle-Width="50px" SelectText="<%$Resources:General,Select%>" ControlStyle-CssClass="blueB ml10" />
                            </Columns>
                            <FooterStyle />
                            <PagerStyle />
                            <SelectedRowStyle />
                            <HeaderStyle />
                            <EditRowStyle />
                            <AlternatingRowStyle />
                            <RowStyle />
                        </asp:GridView>
                        <asp:SqlDataSource ID="sqlDsPremiumList" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                            SelectCommand="sprocCXBrokerPremiumSelectItemList" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="txtCarId" Name="CECarId" DefaultValue="0" PropertyName="Text"
                                    Type="Int64" />
                                <asp:Parameter Name="ProductType" DefaultValue="CIN" DbType="String" />
                                <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" DefaultValue="1"
                                    PropertyName="Text" Type="Int16" />
                            </SelectParameters>
                            
                        </asp:SqlDataSource>
                        <asp:HyperLink ID="hplPremiumDownLoad" runat="server" Target="_blank" Text="<%$Resources:CarInsurance,DownloadNonGGPremium%>"
                            Visible="false"></asp:HyperLink>
                        <asp:Label runat="server" Visible="false" Text="" ID="lblSelectedRefNo" />
                    </ContentTemplate>
                </asp:UpdatePanel>
                <div style="float: right; padding: 5px 0 5px 0;">
                    <asp:Button ID="btnPremiumDownload" runat="server" Text="<%$Resources:CarInsurance,DownloadNonGGPremium%>"
                        Visible="true" OnClick="btnPremiumDownload_Click" OnClientClick="PremiumDownloadClick();"
                        CssClass="blueB ml10" />
                </div>
            </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>
    <br />
    <asp:TabContainer ID="tabContainer2" Height="380px" ScrollBars="Auto" CssClass="Tab"
        ActiveTabIndex="0" runat="server" Visible="true">
        <asp:TabPanel ID="tplCallStatus" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/1st.png" alt="" class="titleIcon" />
                <asp:Label ID="lblLastCallStatusMessage" runat="server" Text="" ForeColor="Red" />
            </HeaderTemplate>
            <ContentTemplate>
                <asp:Label ID="lblLastCallStatusCaption" runat="server" Text="<%$Resources:General,LastCallStatus%>" />
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div class="form">
                            <fieldset class="step">
                                <div class="formRow">
                                    <asp:Label runat="server" ID="Label6" Text="<%$Resources:General,FinishCall%>" />
                                    <div class="formRight">
                                        <asp:RadioButton AutoPostBack="true" ID="rdoCallFinish" Text="<%$Resources:General,CallFinish%>"
                                            GroupName="calltype" runat="server" OnCheckedChanged="rdoCallFinish_CheckedChanged" />
                                        <asp:RadioButton AutoPostBack="true" ID="rdoCallBack" Text="<%$Resources:General,Callback%>"
                                            GroupName="calltype" runat="server" OnCheckedChanged="rdoCallFinish_CheckedChanged" />
                                        <asp:RadioButton AutoPostBack="true" ID="rdoFollowUp" Text="<%$Resources:General,FollowUp%>"
                                            GroupName="calltype" runat="server" OnCheckedChanged="rdoCallFinish_CheckedChanged" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="formRow">
                                    <asp:Label runat="server" ID="lblStatusCaption" Text="<%$Resources:General,Status%>" />
                                    <div class="formRight">
                                        <asp:DropDownList ID="ddlCIMainCallStatus" runat="server" OnSelectedIndexChanged="ddlCIMainCallStatus_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCIMainCallStatus" Enabled="true" Display="Dynamic"
                                            ValidationGroup="callstatus" runat="server" ControlToValidate="ddlCIMainCallStatus"
                                            InitialValue="-1" Text="*" ErrorMessage="Select main call status type." />
                                        <asp:DropDownList ID="ddlCICallStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCICallStatus_SelectedIndexChanged">
                                            <asp:ListItem Text="Select" Value="-1" />
                                            <asp:ListItem Text="Reject customer due to ineligibility/ claims /age/driving experience"
                                                Value="11" />
                                            <asp:ListItem Text="Do not agree to buy" Value="12" />
                                            <asp:ListItem Text="Customer renew with other insurer" Value="13" />
                                            <asp:ListItem Text="Just shopping" Value="14" />
                                            <asp:ListItem Text="GG quoted premium too high" Value="15" />
                                            <asp:ListItem Text="Policy not expiring so soon" Value="16" />
                                            <asp:ListItem Text="Others – Free Field to input" Value="17" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCICallStatus" Enabled="true" Display="Dynamic"
                                            ValidationGroup="callstatus" runat="server" ControlToValidate="ddlCICallStatus"
                                            InitialValue="-1" ErrorMessage="Select call status type." Text="*" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="formRow" runat="server" id="trCallBack1" visible="false">
                                    <asp:Label runat="server" ID="lblCallBackDateTime" Text="<%$Resources:General,DateTime%>" />
                                    <div class="formRight">
                                        <asp:DropDownList ID="ddlTDay" runat="server">
                                            <asp:ListItem Text="DD" Value="00" />
                                            <asp:ListItem Text="01" Value="01" />
                                            <asp:ListItem Text="02" Value="02" />
                                            <asp:ListItem Text="03" Value="03" />
                                            <asp:ListItem Text="04" Value="04" />
                                            <asp:ListItem Text="05" Value="05" />
                                            <asp:ListItem Text="06" Value="06" />
                                            <asp:ListItem Text="07" Value="07" />
                                            <asp:ListItem Text="08" Value="08" />
                                            <asp:ListItem Text="09" Value="09" />
                                            <asp:ListItem Text="10" Value="10" />
                                            <asp:ListItem Text="11" Value="11" />
                                            <asp:ListItem Text="12" Value="12" />
                                            <asp:ListItem Text="13" Value="13" />
                                            <asp:ListItem Text="14" Value="14" />
                                            <asp:ListItem Text="15" Value="15" />
                                            <asp:ListItem Text="16" Value="16" />
                                            <asp:ListItem Text="17" Value="17" />
                                            <asp:ListItem Text="18" Value="18" />
                                            <asp:ListItem Text="19" Value="19" />
                                            <asp:ListItem Text="20" Value="20" />
                                            <asp:ListItem Text="21" Value="21" />
                                            <asp:ListItem Text="22" Value="22" />
                                            <asp:ListItem Text="23" Value="23" />
                                            <asp:ListItem Text="24" Value="24" />
                                            <asp:ListItem Text="25" Value="25" />
                                            <asp:ListItem Text="26" Value="26" />
                                            <asp:ListItem Text="27" Value="27" />
                                            <asp:ListItem Text="28" Value="28" />
                                            <asp:ListItem Text="29" Value="29" />
                                            <asp:ListItem Text="30" Value="30" />
                                            <asp:ListItem Text="31" Value="31" />
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlTMonth" runat="server">
                                            <asp:ListItem Text="MMM" Value="00" />
                                            <asp:ListItem Text="JAN" Value="01" />
                                            <asp:ListItem Text="FEB" Value="02" />
                                            <asp:ListItem Text="MAR" Value="03" />
                                            <asp:ListItem Text="APR" Value="04" />
                                            <asp:ListItem Text="MAY" Value="05" />
                                            <asp:ListItem Text="JUN" Value="06" />
                                            <asp:ListItem Text="JUL" Value="07" />
                                            <asp:ListItem Text="AUG" Value="08" />
                                            <asp:ListItem Text="SEP" Value="09" />
                                            <asp:ListItem Text="OCT" Value="10" />
                                            <asp:ListItem Text="NOV" Value="11" />
                                            <asp:ListItem Text="DEC" Value="12" />
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlTYear" runat="server">
                                        </asp:DropDownList>
                                        <span runat="server" id="spanTimeDrowdown">
                                            <asp:DropDownList ID="ddlTHour" runat="server">
                                                <asp:ListItem Text="hh" Value="-1" />
                                                <asp:ListItem Text="01" Value="01" />
                                                <asp:ListItem Text="02" Value="02" />
                                                <asp:ListItem Text="03" Value="03" />
                                                <asp:ListItem Text="04" Value="04" />
                                                <asp:ListItem Text="05" Value="05" />
                                                <asp:ListItem Text="06" Value="06" />
                                                <asp:ListItem Text="07" Value="07" />
                                                <asp:ListItem Text="08" Value="08" />
                                                <asp:ListItem Text="09" Value="09" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="11" Value="11" />
                                                <asp:ListItem Text="12" Value="12" />
                                                <asp:ListItem Text="13" Value="13" />
                                                <asp:ListItem Text="14" Value="14" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="16" Value="16" />
                                                <asp:ListItem Text="17" Value="17" />
                                                <asp:ListItem Text="18" Value="18" />
                                                <asp:ListItem Text="19" Value="19" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="21" Value="21" />
                                                <asp:ListItem Text="22" Value="22" />
                                                <asp:ListItem Text="23" Value="23" />
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="ddlTMin" runat="server">
                                                <asp:ListItem Text="mm" Value="-1" />
                                                <asp:ListItem Text="00" Value="00" />
                                                <asp:ListItem Text="05" Value="05" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="25" Value="25" />
                                                <asp:ListItem Text="30" Value="30" />
                                                <asp:ListItem Text="35" Value="35" />
                                                <asp:ListItem Text="40" Value="40" />
                                                <asp:ListItem Text="45" Value="45" />
                                                <asp:ListItem Text="50" Value="50" />
                                                <asp:ListItem Text="55" Value="55" />
                                            </asp:DropDownList>
                                        </span>
                                        <asp:CustomValidator ID="csvTargetDate" runat="server" ValidationGroup="callstatus"
                                            ControlToValidate="ddlTYear" ErrorMessage="Invalid callback date time." OnServerValidate="csvTargetDate_ServerValidate">*</asp:CustomValidator>
                                        <asp:TextBox runat="server" Visible="false" ID="txtCallBackDateTime" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="formRow" id="trCallBack2" runat="server" visible="false">
                                    <asp:Label runat="server" ID="Label4" Text="<%$Resources:General,ToWho%>" />
                                    <div class="formRight">
                                        <asp:DropDownList ID="ddlCBAgentList" runat="server">
                                            <asp:ListItem Text="Agent 1" Value="201" />
                                            <asp:ListItem Text="Agent 2" Value="202" />
                                            <asp:ListItem Text="Agent 3" Value="203" />
                                            <asp:ListItem Text="Agent 4" Value="204" />
                                            <asp:ListItem Text="Agent 5" Value="205" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCBAgentList" Enabled="true" Display="Dynamic"
                                            ValidationGroup="callstatus" runat="server" ControlToValidate="ddlCBAgentList"
                                            ErrorMessage="Select call back agent." Text="*" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <asp:Panel runat="server" ID="pnlCallMeStatus" Visible="false">
                                    <div class="formRow">
                                        <label>
                                            Call Me Comments</label>
                                        <div class="formRight">
                                            <asp:TextBox runat="server" TextMode="MultiLine" Visible="false" Height="100px" ID="txtCICallMeRemark"
                                                ReadOnly="true" />
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                                <div class="formRow">
                                    <asp:Label runat="server" ID="lblCommentsCaption" Text="<%$Resources:General,Comments%>" />
                                    <div class="formRight">
                                        <asp:TextBox runat="server" TextMode="MultiLine" Height="100px" ID="txtCallStatus" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <asp:Label runat="server" ID="lblCallStatusMessage" Font-Bold="true" ForeColor="Red" />
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                    <ProgressTemplate>
                                        <asp:Label runat="server" ID="lblProcessingMessage" Text="<%$Resources:General,ProcessingPlsWait%>" /></ProgressTemplate>
                                </asp:UpdateProgress>
                            </fieldset>
                            <div class="wizButtons">
                                <span class="wNavButtons">
                                    <asp:Button runat="server" ValidationGroup="callstatus" ID="btnCallStatus" Text="<%$Resources:General,Save%>"
                                        OnClick="btnCallStatus_Click" OnClientClick="return SubmitConfirm();" CssClass="blueB ml10" />
                                    <asp:Button runat="server" CausesValidation="false" ID="btnNext" Text="<%$Resources:General,NewCall%>"
                                        Visible="false" OnClick="btnNext_Click" CssClass="blueB ml10" OnClientClick="return NextConfirm();" />
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <asp:ValidationSummary runat="server" ValidationGroup="callstatus" ID="vsCallStatus"
                            ShowMessageBox="true" ShowSummary="false" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tplManualQuote" runat="server">
            <HeaderTemplate>
                <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <asp:Label runat="server" Text="<%$Resources:CarInsurance,NonGGPackages%>" ID="Label8" />
            </HeaderTemplate>
            <ContentTemplate>
                <div class="form">
                    <fieldset class="step">
                        <asp:UpdatePanel ID="uplCXBrokerPremium" runat="server">
                            <ContentTemplate>
                                <div>
                                    <asp:Label runat="server" Text="" ID="lblRenewalStatusMessage" />
                                    <asp:ValidationSummary runat="server" ValidationGroup="premium" ID="valPremium" ShowMessageBox="false"
                                        ShowSummary="true" ForeColor="Red" Font-Bold="true" HeaderText="Opps.. Please complete all (*) fields." />
                                    <div class="clear">
                                    </div>
                                </div>
                                <div id="divCXBrokerPremium" runat="server" visible="false">
                                    <div class="form">
                                        <div id="divOne" class="oneTwo">
                                            <div class="toggle">
                                                <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                    <tr>
                                                        <td width="180" height="25">
                                                            <%=GetGlobalResourceObject("CarInsurance", "CompanyName")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlBrokerProvider" CausesValidation="false" runat="server"
                                                                OnSelectedIndexChanged="ddlBrokerProvider_SelectedIndexChanged" AutoPostBack="True">
                                                            </asp:DropDownList>
                                                            <asp:RequiredFieldValidator ID="rfvBrokerProvider" ValidationGroup="premium" runat="server"
                                                                ControlToValidate="ddlBrokerProvider" InitialValue="-1" ErrorMessage="" Text="*" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlBrokerCoverType" runat="server" OnSelectedIndexChanged="ddlBrokerCoverType_SelectedIndexChanged"
                                                                AutoPostBack="True" CausesValidation="true">
                                                            </asp:DropDownList>
                                                            <asp:RequiredFieldValidator ID="rfvBrokerCoverType" ValidationGroup="premium" runat="server"
                                                                ControlToValidate="ddlBrokerCoverType" InitialValue="-1" ErrorMessage="" Text="*" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <%=GetGlobalResourceObject("CarInsurance", "GarageType")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlGarageType" runat="server" CausesValidation="false" AutoPostBack="true"
                                                                OnSelectedIndexChanged="ddlGarageType_SelectedIndexChanged">
                                                                <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                                                <asp:ListItem Value="1" Text="<%$ Resources:CarInsurance,Garage_Authorized%>" />
                                                                <asp:ListItem Value="2" Text="<%$ Resources:CarInsurance,Garage_Dealer%>" />
                                                            </asp:DropDownList>
                                                            <asp:RequiredFieldValidator ID="rfvWorkShop" runat="server" ControlToValidate="ddlGarageType"
                                                                Display="Dynamic" ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            GG.COM Discount
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <table cellpadding="10">
                                                                <tr>
                                                                    <td>
                                                                        <asp:DropDownList CausesValidation="true" runat="server" ID="ddlDiscountPercentage"
                                                                            AutoPostBack="True" OnSelectedIndexChanged="ddlDiscountPercentage_SelectedIndexChanged">
                                                                            <asp:ListItem Text="0 %" Value="0" />
                                                                            
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label runat="server" Font-Bold="true" ID="lblDiscountAmount" Text="0" />
                                                                        <asp:RequiredFieldValidator ID="rfvDiscountPercentage" runat="server" ControlToValidate="ddlDiscountPercentage"
                                                                            ErrorMessage="*" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                    <td>
                                                                        Teledirect's Employee?
                                                                    </td>
                                                                    <td>
                                                                        <asp:CheckBox ID="chkCompanyStaff" Checked="false" runat="server" OnCheckedChanged="chkCompanyStaff_CheckedChanged"
                                                                            AutoPostBack="true" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--Voluntary (VMI) Net Premium เบี้ยประกันภัยสุทธิ  -->
                                                            <%=GetGlobalResourceObject("NonGG", "NetPremium")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblNetPremium" Font-Bold="true" runat="server" Width="120px" />
                                                            <asp:TextBox ID="txtNetPremium" CausesValidation="false" ReadOnly="true" Visible="false"
                                                                runat="server" MaxLength="20" Width="120px"></asp:TextBox><asp:RequiredFieldValidator
                                                                    ID="rfvNetPremium" runat="server" ControlToValidate="txtNetPremium" ErrorMessage="Premium."
                                                                    Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                        ID="revNetPremium" runat="server" ControlToValidate="txtNetPremium" ValidationGroup="premium"
                                                                        ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--Duty Stamp (0.4%) อากรแสตมป์-->
                                                            <%=GetGlobalResourceObject("NonGG", "Duty")%>
                                                            (0.4%)
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblTax" Font-Bold="true" runat="server" Width="200px" />
                                                            <asp:TextBox ID="txtTax" CausesValidation="false" runat="server" ReadOnly="true"
                                                                Visible="false" Text="" MaxLength="20" Width="200px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvTax" runat="server" ControlToValidate="txtTax"
                                                                Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--VAT (7%) ภาษีมูลค่าเพิ่ม-->
                                                            <%=GetGlobalResourceObject("NonGG", "VAT")%>
                                                            (7%)
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblVAT" runat="server" Font-Bold="true" MaxLength="20" Width="200px" />
                                                            <asp:TextBox ID="txtVAT" runat="server" ReadOnly="true" Visible="false" Text="" MaxLength="20"
                                                                Width="200px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvVAT" runat="server"
                                                                    ControlToValidate="txtVAT" Display="Dynamic" ErrorMessage="Package" Text="*"
                                                                    ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--VMI Gross Premium เบี้ยประกันภัยรวม-->
                                                            <%=GetGlobalResourceObject("NonGG", "GrossPremium")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtGrossPremium" runat="server" MaxLength="12" Width="120px" AutoPostBack="True"
                                                                CausesValidation="true" OnTextChanged="txtGrossPremium_TextChanged"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvGrossPremium" runat="server" ControlToValidate="txtGrossPremium"
                                                                ErrorMessage="" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="revGrossPremium" runat="server" ControlToValidate="txtGrossPremium"
                                                                ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--VMI Gross Premium After Discount เบี้ยประกันภัยรวมหลังหักส่วนลด-->
                                                            <%=GetGlobalResourceObject("NonGG", "VMIGrossPremiumAfterDiscount")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblAnnualPremium" runat="server" Width="120px" />
                                                            <asp:TextBox ID="txtAnnualPremium" CausesValidation="false" ReadOnly="true" runat="server"
                                                                MaxLength="20" Width="120px" Visible="false"></asp:TextBox><asp:RequiredFieldValidator
                                                                    ID="rfvAnnualPremium" runat="server" ControlToValidate="txtAnnualPremium" ErrorMessage="Premium."
                                                                    Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                        ID="revAnnualPremium" runat="server" ControlToValidate="txtAnnualPremium" ValidationGroup="premium"
                                                                        ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--CTPL / CMI Gross Premium (Compulsory Insurance) เบี้ย พรบ.-->
                                                            <%=GetGlobalResourceObject("NonGG", "CTPLCMIGP")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlVehicleBodyType" CausesValidation="true" Enabled="true"
                                                                OnSelectedIndexChanged="ddlVehicleBodyType_SelectedIndexChanged" runat="server"
                                                                AutoPostBack="true">
                                                                <asp:ListItem Text="<%$Resources:CarInsurance,Sedan%>" Value="1" Selected="True" />
                                                                <asp:ListItem Text="<%$Resources:CarInsurance,Pickup%>" Value="2" />
                                                                <asp:ListItem Text="<%$Resources:General,Others%>" Value="99" />
                                                            </asp:DropDownList>
                                                            <asp:TextBox ID="txtCTPL" CausesValidation="true" ReadOnly="false" runat="server"
                                                                Text="645.21" MaxLength="20" Width="50px" AutoPostBack="True" OnTextChanged="txtCTPL_TextChanged"></asp:TextBox>
                                                            <asp:CheckBox ID="chkCTPL" CausesValidation="false" runat="server" Checked="true"
                                                                AutoPostBack="True" OnCheckedChanged="chkCTPL_CheckedChanged" />
                                                            <asp:RequiredFieldValidator ID="rfvCTPL" runat="server" ControlToValidate="txtCTPL"
                                                                Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="revCTPL" runat="server" ControlToValidate="txtCTPL"
                                                                ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                        <div id="divTwo" class="oneTwo">
                                            <div class="toggle">
                                                <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                    <tr>
                                                        <td width="200" height="25">
                                                            <%=GetGlobalResourceObject("General", "ReferenceNo")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblQRefNo" runat="server" Font-Bold="true" Font-Size="Medium" Text="" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <%=GetGlobalResourceObject("CarInsuranceResultPage", "LicensePlate")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblEditLicensePlate" />
                                                            
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--Total Gross Premium (No Discount) เบี้ยประกันภัยรวมไม่หักส่วนลด-->
                                                            <%=GetGlobalResourceObject("NonGG", "TotalGPNoDiscount")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFinalAnnualPremiumNoDisc" CausesValidation="false" runat="server"
                                                                MaxLength="20" Width="120px" Visible="true" ReadOnly="true" Font-Bold="true"
                                                                Font-Size="Large"></asp:TextBox>
                                                            <asp:CheckBox ID="chkChangePremium" CausesValidation="false" runat="server" Checked="false"
                                                                AutoPostBack="True" OnCheckedChanged="chkChangePremium_CheckedChanged" Text=" Edit" />
                                                            <asp:RequiredFieldValidator ID="rfvFinalAnnualPremiumNoDisc" runat="server" ControlToValidate="txtFinalAnnualPremiumNoDisc"
                                                                ErrorMessage="*" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                    ID="revFinalAnnualPremiumNoDisc" runat="server" ControlToValidate="txtFinalAnnualPremiumNoDisc"
                                                                    ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <!--Total Gross Premium (with Discount) เบี้ยประกันภัยรวมหักส่วนลดแล้ว-->
                                                            <%=GetGlobalResourceObject("NonGG", "TotalGPWithDiscount")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFinalAnnualPremium" CausesValidation="false" runat="server" MaxLength="20"
                                                                Width="120px" Visible="true" ReadOnly="true" Font-Bold="true" Font-Size="Large"></asp:TextBox><asp:RequiredFieldValidator
                                                                    ID="rfvFinalAnnualPremium" runat="server" ControlToValidate="txtFinalAnnualPremium"
                                                                    ErrorMessage="*" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                        ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtFinalAnnualPremium"
                                                                        ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <%=GetGlobalResourceObject("CarInsurance", "PaymentOption")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlPaymentOption" runat="server" Width="200px">
                                                                <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>"></asp:ListItem>
                                                                <asp:ListItem Value="IP" Text="<%$ Resources:CarInsurance,Installment%>"></asp:ListItem>
                                                                <asp:ListItem Value="FP" Text="<%$ Resources:CarInsurance,AnnualPayment%>"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:RequiredFieldValidator ID="rfvPaymentOption" ControlToValidate="ddlPaymentOption"
                                                                ErrorMessage="" ValidationGroup="premium" InitialValue="-1" Text="*" runat="server"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <%=GetGlobalResourceObject("General", "Comments")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtPremiumChangeComments" CausesValidation="false" runat="server"
                                                                MaxLength="50" Width="220px" Visible="true" TextMode="MultiLine" Rows="3" Columns="50" />
                                                            <asp:RequiredFieldValidator ID="rfvPremiumChangeComments" Enabled="false" runat="server"
                                                                ControlToValidate="txtPremiumChangeComments" ErrorMessage="*" Text="*" Display="Dynamic"
                                                                ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25">
                                                            <%=GetGlobalResourceObject("General", "Status")%>
                                                        </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                            <asp:CheckBox ID="chkSelected" runat="server" Text="<%$Resources:General,SelectThisPremium%>" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Button ID="btnNewPremiumTwo" runat="server" Text="<%$Resources:General,NewQuotation%>"
                                                                CausesValidation="false" Visible="true" OnClick="btnNewPremium_Click" CssClass="blueB ml10"
                                                                OnClientClick="return ConfirmNew();" />
                                                        </td>
                                                        <td>
                                                            &nbsp;
                                                        </td>
                                                        <td>
                                                            <asp:Button ID="btnSubmitPremium" OnClientClick="return SubmitPremiumConfirm();"
                                                                runat="server" Text="<%$Resources:CarInsurance,SubmitPremium%>" ValidationGroup="premium"
                                                                OnClick="btnSubmitPremium_Click" Width="130px" Height="30px" Font-Bold="true"
                                                                CssClass="blueB ml10" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3">
                                                            <asp:Label ID="lblPremiumMessage" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                                                            <asp:Label ID="lblPremiumError" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </fieldset>
                </div>
            </ContentTemplate>
        </asp:TabPanel>
        <ajaxToolkit:TabPanel runat="server" ID="tplBenefits">
            <HeaderTemplate>
                Benefits</HeaderTemplate>
            <ContentTemplate>
                <asp:UpdatePanel runat="server" ID="uplBenefits">
                    <ContentTemplate>
                        <div class="form">
                            <div id="div2" class="oneTwo">
                                <div class="toggle">
                                    <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                        <tr>
                                            <td height="25" colspan="3">
                                                <%=GetGlobalResourceObject("CarInsurance", "AccessaryAndModificationAmount")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25" colspan="3">
                                                <asp:TextBox ID="txtAccModCost" CausesValidation="false" runat="server" Text="0"
                                                    MaxLength="50" Width="500px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvAccModCost" runat="server" ControlToValidate="txtAccModCost"
                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "TPBIP")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtTPBIP" CausesValidation="false" runat="server" Text="1,000,000"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvTPBIP" runat="server" ControlToValidate="txtTPBIP"
                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "TPBIA")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtTPBIA" CausesValidation="false" runat="server" Text="10,000,000"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTPBIA"
                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "TPPD")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtTPPD" CausesValidation="false" runat="server" Text="5,000,000"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvTPPD" runat="server" ControlToValidate="txtTPPD"
                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "OwnDamage")%><br />
                                                /
                                                <asp:Label runat="server" Text="<%$Resources:CarInsurance,SumInsured%>" ID="Label13" />
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtOwnDamage" CausesValidation="false" runat="server" Text="20,000"
                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvOwnDamage" runat="server" ControlToValidate="txtOwnDamage"
                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "FireTheft")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtFireTheft" CausesValidation="false" runat="server" Text="2,200,000"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvFireTheft" runat="server" ControlToValidate="txtFireTheft"
                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div id="div3" class="oneTwo">
                                <div class="toggle">
                                    <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "FloodCover")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtFloodCoverAmount" CausesValidation="false" runat="server" Text="0"
                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvFloodCoverAmount" runat="server" ControlToValidate="txtFloodCoverAmount"
                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "DEC")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtDeductible" CausesValidation="false" runat="server" MaxLength="50"
                                                    Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvDeductible" runat="server" ControlToValidate="txtDeductible"
                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                <asp:CustomValidator ControlToValidate="txtDeductible" Display="Dynamic" ValidationGroup="premium"
                                                    ID="csvDeductibleValid" runat="server" ErrorMessage="<%$Resources:General,DeductableValid%>"
                                                    Text="" OnServerValidate="csvDeductibleValid_ServerValidate"></asp:CustomValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "PA")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtPA" CausesValidation="false" runat="server" Text="200,000(12)"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvPA" runat="server" ControlToValidate="txtPA" Display="Dynamic"
                                                    ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "MED")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtMED" CausesValidation="false" runat="server" Text="200,000(12)"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvMED" runat="server" ControlToValidate="txtPA"
                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "BailBond")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtBailBond" CausesValidation="false" runat="server" Text="250,000"
                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvBailBond" runat="server" ControlToValidate="txtPA"
                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25">
                                                <%=GetGlobalResourceObject("NonGG", "NamedDrivers")%>
                                            </td>
                                            <td>
                                                :
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkNamedDriver" Checked="false" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnGoToNonGGPendingApp" runat="server" Text="<%$Resources:General,NonGGPackageApplication%>"
                                                    Visible="true" CssClass="blueB ml10" OnClick="btnGoToNonGGPendingApp_Click" />
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <asp:TabPanel ID="tplMonthlyInstallment" runat="server">
            <HeaderTemplate>
                <%=GetGlobalResourceObject("CarInsurance", "MonthlyInstallment")%>
            </HeaderTemplate>
            <ContentTemplate>
                <asp:UpdatePanel runat="server" ID="uplMonthlyInstallment">
                    <ContentTemplate>
                        <div class="form">
                            <fieldset class="step">
                                <div class="form">
                                    <div id="div1" class="oneTwo">
                                        <div class="toggle">
                                            <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                <!-- Monthly Installment -- start -->
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "GGCOMDiscount")%>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlGGDiscount" CausesValidation="false" runat="server" Enabled="false">
                                                        </asp:DropDownList>
                                                        &nbsp;&nbsp;
                                                        <asp:Label ID="lblNoDiscount" runat="server" Visible="false"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <%=GetGlobalResourceObject("CarInsurance", "CreditCardAllowed")%>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblCreditCardAllowed" runat="server" Visible="false"></asp:Label>
                                                        <asp:DropDownList ID="ddlCreditCard" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCreditCard_SelectedIndexChanged">
                                                            <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "NoofInstallments")%>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="ddlNoofInstallments" CausesValidation="false" runat="server"
                                                            OnSelectedIndexChanged="NoofInstallments_SelectedIndexChanged" AutoPostBack="True">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "Interest")%>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblInterest" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                
                                                <tr>
                                                    <td width="200" height="25">
                                                        <strong>
                                                            <%=GetGlobalResourceObject("NonGG", "TotalGPNoDiscount")%></strong>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblTotalGrossPremiumWOD" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "Installment")%>&nbsp;&nbsp;&nbsp;
                                                        <asp:Label ID="lblFirstInstallmentWODdesc" runat="server" ForeColor="Red"></asp:Label>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblFirstInstallmentWOD" runat="server" ForeColor="Red"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "LastMonthInstallment")%>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblLastInstallmentWOD" runat="server" ForeColor="Red"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <strong>
                                                            <%=GetGlobalResourceObject("NonGG", "TotalGPWithDiscount")%></strong>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblTotalGrossPremiumWD" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "Installment")%>&nbsp;&nbsp;&nbsp;
                                                        <asp:Label ID="lblFirstInstallmentWDdesc" runat="server" ForeColor="green"></asp:Label>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblFirstInstallmentWD" runat="server" ForeColor="green"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="200" height="25">
                                                        <%=GetGlobalResourceObject("CarInsurance", "LastMonthInstallment")%>
                                                    </td>
                                                    <td width="5">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblLastInstallmentWD" runat="server" ForeColor="green"></asp:Label>
                                                    </td>
                                                </tr>
                                                <!-- Monthly Installment -- end -->
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>
    <div style="display: none">
        <div class="toggle" runat="server" id="divCarDetailList" visible="false">
        </div>
        <div class="toggle" runat="server" id="divCustomerPolicyDetail" visible="false">
        </div>
        <div class="toggle" id="divCallHistory" runat="server" visible="false">
        </div>
        <div class="toggle" runat="server" id="divResult" visible="false">
        </div>
        <div class="toggle" runat="server" id="divPremiumList" visible="true">
        </div>
        <div id="divEditDetail" runat="server" visible="true">
        </div>
        <div id="divCallStatus" class="toggle" runat="server" visible="false">
        </div>
    </div>
    <div runat="server" id="divBuyNowStatus" visible="false">
        <asp:Label ID="lblBuyNowStatus" runat="server" Text="" Font-Size="Large" Font-Bold="true" />
        <asp:Button ID="btnBuyNowRefresh" Text="Refresh" runat="server" OnClick="btnBuyNowRefresh_Click" />
    </div>
    <div style="display: none">
        <asp:TextBox runat="server" ID="txtPremiumId" Text="0"></asp:TextBox>
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCXCRMId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCustomerId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarPolicyId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarResultId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtServerPath" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCallBackCount" />
        <asp:TextBox runat="server" ID="txtCallStatusId" Text="0"></asp:TextBox>
        <asp:TextBox runat="server" ID="txtContactNo" Text="0"></asp:TextBox>
        <asp:TextBox ID="txtUserTypeId" runat="server" Text="400"></asp:TextBox>
    </div>

    <script type="text/javascript">
        function OpenPremiumDownload(refid) {
            document.getElementById('<%= txtCarId.ClientID%>').value = refid;

            var winl = (screen.width - 800) / 2;
            var wint = (screen.height - 500) / 2;
            var settings = 'height=500,';
            settings += 'width=800,';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += 'scrollbars=yes,';
            settings += 'resizable=No';
            window.open('PremiumDownload.aspx?carid=' + refid, 'NEWWIN', settings);
        }

        var intTimer = setInterval("StartTimer()", 1000);

        function StartTimer() {
            var txtMin = document.getElementById('<%=txtMinute.ClientID%>');
            var txtSecond = document.getElementById('<%=txtSecond.ClientID%>');

            var intMin = parseInt(txtMin.value);
            var intSecond = parseInt(txtSecond.value) + 1;

            var strMin = '';
            var strSecond = '';
            
            if (intSecond == 60) {
                intSecond = 0;
                intMin = intMin + 1
            }

            if (intMin == 60 && intSecond == 1) {
                alert("Call duration is now over 60 minutes.");
                //clearInterval(intTimer);
            }

            txtMin.value = intMin.toString();
            txtSecond.value = intSecond.toString();

            if (intMin > 9) {
                strMin = intMin.toString();
            }
            else {
                strMin = "0" + intMin.toString();
            }

            if (intSecond > 9) {
                strSecond = intSecond.toString();
            }
            else {
                strSecond = "0" + intSecond.toString();
            }

            var lblCallTimer = document.getElementById('<%=lblCallDurationTimer.ClientID%>');
            if (lblCallTimer != null) {
                lblCallTimer.innerHTML = strMin + " : " + strSecond;
            }
        }

        function GoBackConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('backbutton')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("CarInsurance", "ConfirmBack")%>?');
            }

            

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('callstatus')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }

           

            return _retVal;
        }

        function SubmitEditDetailConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('editdetail')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }

            

            return _retVal;
        }

        function SendQuotationConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('sendquotation')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }

            

            return _retVal;
        }

        function SubmitPremiumConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('premium')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }

            

            return _retVal;
        }

        function NextConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmNext")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function ConfirmNew() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "NewQuotationConfirm")%>');

            return _retVal;
        }

        function ResetConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmRESETMessage")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            

            return _retVal;
        }

        function DeletePremiumConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("CarInsurance", "ConfirmDeleteNonGGPremium")%>');

            

            return _retVal;
        }

        function ConfirmREQuote() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmReRunQuoteMessage")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function ConfirmNewQuote() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmRunNewQuoteMessage")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function PremiumDownloadClick() {
            //window.onbeforeunload = null;
        }

        function ConfirmRenewQuote() {
            var _retVal = false;

            _retVal = confirm('Are you sure to RENEW QUOTE?');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        var _ddlDiscountPercentageEnableStatus = false;

        var xPos, yPos;
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);
        var postBackElement;
        function InitializeRequest(sender, args) {
            if (prm.get_isInAsyncPostBack())
                args.set_cancel(true);
            postBackElement = args.get_postBackElement();
            OnOffUpdateProgress(true);
            //xPos = $get('divTabControl').scrollLeft;
            //yPos = $get('divTabControl').scrollTop;
        }

        function OnOffUpdateProgress(onOff) {
            if ($get('<%=chkConfirmEmail.ClientID%>') != null) {
                $get('<%=chkConfirmEmail.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmitPremium.ClientID%>') != null) {
                $get('<%=btnSubmitPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmitPremium.ClientID%>') != null) {
                $get('<%=btnSubmitPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmitPremium.ClientID%>') != null) {
                $get('<%=btnSubmitPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=chkCTPL.ClientID%>') != null) {
                $get('<%=chkCTPL.ClientID%>').disabled = onOff;
            }

            if ($get('<%=txtGrossPremium.ClientID%>') != null) {
                $get('<%=txtGrossPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=txtFinalAnnualPremium.ClientID%>') != null) {
                $get('<%=txtFinalAnnualPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlDiscountPercentage.ClientID%>') != null) {
                _ddlDiscountPercentageEnableStatus = $get('<%=ddlDiscountPercentage.ClientID%>').disabled;
                $get('<%=ddlDiscountPercentage.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlBrokerCoverType.ClientID%>') != null) {
                $get('<%=ddlBrokerCoverType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlBrokerProvider.ClientID%>') != null) {
                $get('<%=ddlBrokerProvider.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlGarageType.ClientID%>') != null) {
                $get('<%=ddlGarageType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=grvPremiumList.ClientID%>') != null) {
                $get('<%=grvPremiumList.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSendOrderConfirmation.ClientID%>') != null) {
                $get('<%=btnSendOrderConfirmation.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnNewPremium.ClientID%>') != null) {
                $get('<%=btnNewPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlVehicleBodyType.ClientID%>') != null) {
                $get('<%=ddlVehicleBodyType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnNewPremiumTwo.ClientID%>') != null) {
                $get('<%=btnNewPremiumTwo.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnGoToNonGGPendingApp.ClientID%>') != null) {
                $get('<%=btnGoToNonGGPendingApp.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnEditSubmit.ClientID%>') != null) {
                $get('<%=btnEditSubmit.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnPremiumDownload.ClientID%>') != null) {
                $get('<%=btnPremiumDownload.ClientID%>').disabled = onOff;
            }

            if ($get('<%=lblPremiumMessage.ClientID%>') != null) {
                if (onOff) {
                    $get('<%=lblPremiumMessage.ClientID%>').innerHTML = '<span style=\'color:red;\'>Processing... please wait</span>';
                }
            }

            if ($get('<%=chkCompanyStaff.ClientID%>') != null) {
                $get('<%=chkCompanyStaff.ClientID%>').disabled = onOff;
            }

            if ($get('<%=lblSendQuotationMessage.ClientID%>') != null) {
                if (onOff) {
                    $get('<%=lblSendQuotationMessage.ClientID%>').innerHTML = '<span style=\'color:red;\'>Processing... please wait</span>';
                }
            }
        }

        function EndRequest(sender, args) {
            OnOffUpdateProgress(false);
            if ($get('<%=ddlDiscountPercentage.ClientID%>') != null) {
                $get('<%=ddlDiscountPercentage.ClientID%>').disabled = _ddlDiscountPercentageEnableStatus;
            }

            //$get('divTabControl').scrollLeft = xPos;
            //$get('divTabControl').scrollTop = yPos;
        }

        window.onbeforeunload = function() {
            return 'ARE YOU SURE?';
        }

    </script>

</asp:Content>
